package com.example.livereplay.common.model.request;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import java.util.List;

@Data
@EqualsAndHashCode
public class InsertTournamentRequest {
    @Schema(description = "附件类型不能为空")
    @NotEmpty(message = "附件类型")
    private String type;

    @Schema(description = "赛事名称")
    @NotEmpty(message = "赛事名称不能为空")
    private String name;

    @Schema(description = "比赛开始时间")
    @NotEmpty(message = "比赛开始时间不能为空")
    private Long gameStartTime;

    @Schema(description = "比赛结束时间")
    @NotEmpty(message = "比赛结束时间不能为空")
    private Long gameEndTime;

    @Schema(description = "场地名称")
    @NotEmpty(message = "场地名称不能为空")
    private String placeName;

    @Schema(description = "附件idList不能为空")
    @NotEmpty(message = "附件idList不能为空")
    private List<String> attachmentIdList;

    @Schema(description = "用户名不能为空")
    @NotEmpty(message = "用户名不能为空")
    private String userId;
}
